package com.sc.es.repo;

import com.sc.es.entity.SupportAddress;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * @author sc
 * Created on  2018/2/7
 */
public interface SupportAddressRepository extends CrudRepository<SupportAddress,Integer> {
    List<SupportAddress> findAllByLevel(String level);
    List<SupportAddress> findAllByLevelAndBelongTo(String level,String belongTo);

    SupportAddress findByEnNameAndLevel(String cityEnName, String value);

    SupportAddress findByEnNameAndBelongTo(String regionEnName, String enName);
}
